<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thông tin nhà sản xuất</title>
<style type="text/css">
#page-heading h1{
	clear: both;
    color: #256C89;
    font-size: 20px;
    font-weight: bold;
    padding: 20px 0 15px;
}

#id-form th {
	padding: 10px 30px;
    text-align: left;
    color: #256C89;
}

.bannerPopup {
	width: 100%;
	height: 100%;
	max-width: 300px;
	max-height: 200px;
}

</style>
</head>
<body>
	<div id="page-heading">
		<h1>Thông tin Banner</h1>
	</div>
	<div class="tabsInfo">
		<table border="0" cellpadding="0" cellspacing="0" id="id-form">
			<tr>
				<th valign="top">Tên file</th>
				<td><span class="infoDisplay">${banner.nameFile}</span></td>
			</tr>
			<tr>
				<th valign="top">Loại</th>
				<td><span class="infoDisplay">
					<c:if test="${banner.type == 'BANNER' }">
						Banner
					</c:if>
					<c:if test="${banner.type == 'ADVERTISING' }">
						Quảng Cáo
					</c:if>
				</span></td>
			</tr>
			<tr>
				<th valign="top">Ngày tạo</th>
				<td><span class="infoDisplay">${createDate}</span></td>
			</tr>
			<tr>
				<img class="bannerPopup" src="getBannerImage?bannerId=${banner.id }" alt="${banner.nameFile}" title="" border="0" />
			</tr>
		</table>
	</div>
</body>
</html>